package com.cn.zmc.design.commend.commend;

import com.cn.zmc.design.commend.service.CommendService;

public class OrderCommend {

    Integer type;

    String orderId;

    public OrderCommend(Integer type, String orderId) {
        this.type = type;
        this.orderId = orderId;
    }

    @Override
    public String toString() {
        return "OrderCommend{" +
                "type=" + type +
                ", orderId='" + orderId + '\'' +
                '}';
    }

    public void execute(CommendService commendService) {
        commendService.execute(this);
    }

}
